import request from '@/utils/request'

export function findAllDocter() {
  return request({
    url: '/admin/findAllDocter',
    method: 'get'
  })
}

export function findAllAudit() {
  return request({
    url: '/admin/findAllAudit',
    method: 'get'
  })
}

export function dealAudit(query) {
  return request({
    url: '/admin/dealAudit',
    method: 'get',
    params: query
  })
}

export function changeDocterState(query) {
  return request({
    url: '/admin/changeDocterState',
    method: 'get',
    params: query
  })
}

export function login(data) {
  return request({
    url: '/admin/login',
    method: 'post',
    data
  })
}
